﻿Imports System.Configuration

''' <summary>
''' MConfigセクション
''' </summary>
''' <remarks></remarks>
Public Class MConfigSectionHandler
    Inherits ConfigurationSection

    ''' <summary>
    ''' 実行環境
    ''' </summary>
    <ConfigurationProperty("execution", IsRequired:=True)> _
    Public Property Execution() As ExecutionElement
        Get
            Return DirectCast(MyBase.Item("execution"), ExecutionElement)
        End Get
        Set(value As ExecutionElement)
            MyBase.Item("execution") = value
        End Set
    End Property

    ''' <summary>
    ''' 環境リスト
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    <ConfigurationProperty("environments")> _
    Public ReadOnly Property Environments() As EnvironmentElementCollection
        Get
            Dim lst As EnvironmentElementCollection = DirectCast(Me("environments"), EnvironmentElementCollection)
            Return lst
        End Get
    End Property
End Class
